/**
 * Copyright 2016 JustWayward Team
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.zhuike.novel.app.bean;

import net.zhuike.novel.app.bean.base.Base;

import java.io.Serializable;

/**
 * @author yuyh.
 * @date 2016/8/4.
 */
public class ChapterRead extends Base {

    /**
     terDetailRegex": "<li data-rid=\"[\\d]+\"><a href=\"(//[a-z]+.qidian.com/chapter/([^/]+?)/([^\"]+?))\"[^>]+?>([\\s\\S]+?)</a>"
     *
     *
     *
     */
    public String vipRegex;
    public String headers;
    public String Accept;
    public String chaptersPartRegex;
    public String chapterRowRegex;
    public String chapterUrlTemplate;
    public String chapterNameTemplate;
    public String accessInterval;
    public String domain;
    public String name;
    public String contentRegex;
    public String contentRegex2;
    public String chapterContentReplaceRules;
    public String chapterDetailRegex;
    public Chapter chapter;

    public static class Chapter implements Serializable {
        public String title;
        public String body;
        public String cpContent;

        public Chapter(String title, String body) {
            this.title = title;
            this.body = body;
        }

        public Chapter(String title, String body, String cpContent) {
            this.title = title;
            this.body = body;
            this.cpContent = cpContent;
        }
    }
}
